package com.shrcl.engineerprocess.web.client.app

import com.google.inject.Inject
import edu.fudan.langlab.uidl.domain.app.client.task.TaskRegister
import com.shrcl.engineerprocess.web.client.workbench.CostEstimationProcesss_TechnicalManagerEstCommand
import com.shrcl.engineerprocess.web.client.workbench.CostEstimationProcesss_TechnicalDirectorConfirmCommand
import com.shrcl.engineerprocess.web.client.workbench.CostEstimationProcesss_BusinessManConfirmCommand
import com.shrcl.engineerprocess.web.client.workbench.RenewEngineerCertificationTaskCommand
import com.shrcl.engineerprocess.web.client.workbench.CreateEngineerProjectTask_ActionCommand
import com.shrcl.engineerprocess.web.client.workbench.CostEstimationProcesss_BusinessManModifyCommand

class TaskInitializer {
//	@Inject RenewParkTrainingClassTaskCommand renewParkTrainingClassTaskCommand 
	@Inject edu.fudan.langlab.uidl.domain.app.client.task.TaskRegister taskRegister 
	
	@Inject CostEstimationProcesss_TechnicalManagerEstCommand costEstimationProcesss_TechnicalManagerEstCommand	
	@Inject CostEstimationProcesss_TechnicalDirectorConfirmCommand costEstimationProcesss_TechnicalDirectorConfirmCommand	
	@Inject CostEstimationProcesss_BusinessManConfirmCommand costEstimationProcesss_BusinessManConfirmCommand	
	@Inject RenewEngineerCertificationTaskCommand renewEngineerCertificationTaskCommand	
	@Inject CreateEngineerProjectTask_ActionCommand createEngineerProjectTask_ActionCommand	
	@Inject CostEstimationProcesss_BusinessManModifyCommand costEstimationProcesss_BusinessManModifyCommand	
	def initialize(){
//		taskRegister.registerCommand("UpdateParkTrainingClassCertTask", renewParkTrainingClassTaskCommand)
		taskRegister.registerCommand("CostEstimationProcesss.TechnicalManagerEst", costEstimationProcesss_TechnicalManagerEstCommand)
		taskRegister.registerCommand("CostEstimationProcesss.BusinessManModify", costEstimationProcesss_BusinessManModifyCommand)
		taskRegister.registerCommand("CostEstimationProcesss.TechnicalDirectorConfirm", costEstimationProcesss_TechnicalDirectorConfirmCommand)
		taskRegister.registerCommand("CostEstimationProcesss.BusinessManConfirm", costEstimationProcesss_BusinessManConfirmCommand)
		taskRegister.registerCommand("UpdateEngineerCertificationTask", renewEngineerCertificationTaskCommand)
		taskRegister.registerCommand("CreateEngineerProjectTask", createEngineerProjectTask_ActionCommand)
	}
	
}